package whu.cn.whushare.bean;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

public class Result<T> {
    @Expose
    @SerializedName("currentPage")
    private long currentPage;
    @Expose
    @SerializedName("pageSize")
    private long pageSize;
    @Expose
    @SerializedName("allDataCount")
    private long allDataCount;
    @Expose
    @SerializedName("nextPage")
    private long nextPage;
	@Expose
    @SerializedName("errno")
	private int code;
	@Expose
    @SerializedName("err")
	private String msg;
	private int total;
	@Expose
    @SerializedName("rsm")
	private T content;

	public Result(T result) {
		this.content = result;
	}

	public Result(int code, T result) {
		this.code = code;
		this.content = result;
	}

    public long getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public long getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public long getAllDataCount() {
        return allDataCount;
    }

    public void setAllDataCount(int allDataCount) {
        this.allDataCount = allDataCount;
    }

    public long getNextPage() {
        return nextPage;
    }

    public void setNextPage(int nextPage) {
        this.nextPage = nextPage;
    }

    public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	public T getContent() {
		return content;
	}

	public void setContent(T content) {
		this.content = content;
	}
}
